/**************************************************************************************************
* Title: SumConfigFile.h
* Author: Gael Huber
* Description: Defines a configuration file for SumEngine and permits loading and saving of file.
**************************************************************************************************/
#ifndef __SUMCONFIGFILE_H__
#define __SUMCONFIGFILE_H__

#include "SumDictionary.h"
#include "SumString.h"

class ConfigFile {
public:
	ConfigFile(void);	// Constructor
	ConfigFile(const ConfigFile& rhs);	// Copy-constructor
	~ConfigFile(void);	// Destructor

	void load(String filename);		// Load from file
	void save(String filename);		// Save to file
	const String getSetting(const String& key) const;

private:
	Dictionary<String, String> settings;	// Configuration options
};

#endif